#@note   Hikvision Digital Technology Co., Ltd. All Rights Reserved.
#@brief  CMake子目录配置文件
#@author Yaopei
#@date   2015/7/31
#@note   the CMakeLists.txt for src. directory


PROJECT(HMSProxy)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -g -O2 -Wall")

if(COMMAND cmake_policy)
    cmake_policy(SET CMP0003 NEW)
endif(COMMAND cmake_policy)

INCLUDE_DIRECTORIES(
  ${PROJECT_SOURCE_DIR}/../../traceworker/
)
LINK_DIRECTORIES(
  ${PROJECT_SOURCE_DIR}/lib
  ${PROJECT_SOURCE_DIR}/event/lib
  ${PROJECT_SOURCE_DIR}/../../traceworker/build
)


SET(SRC_SRCS
  tinyxml2.cpp
  xmltest.cpp
)

# shared library
#ADD_LIBRARY(BigdataStreamRecv SHARED ${SRC_SRCS} )

#static library
#ADD_LIBRARY(BigdataStreamRecv_static STATIC ${SRC_SRCS})

ADD_EXECUTABLE(xmltest ${SRC_SRCS})
# link library
TARGET_LINK_LIBRARIES(xmltest thrift thriftnb event curl json 
                      boost_system boost_thread hiredis_vip)

# clean
#SET_TARGET_PROPERTIES(BigdataStreamRecv PROPERTIES CLEAN_DIRECT_OUTPUT 1)
#SET_TARGET_PROPERTIES(BigdataStreamRecv_static PROPERTIES CLEAN_DIRECT_OUTPUT 1)

